

package com.aasa.seguridad.action;

import java.util.Enumeration;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

public class LoginAction extends DispatchAction
{

    public LoginAction()
    {
    }

    public ActionForward logout(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
        throws Exception
    {
        HttpSession objL_Httpsession = request.getSession(false);
        for(Enumeration enume = objL_Httpsession.getAttributeNames(); enume.hasMoreElements(); objL_Httpsession.removeAttribute((String)enume.nextElement()));
        objL_Httpsession.invalidate();
        return mapping.findForward("toFinSesion");
    }
    
    
  
    
}